#include "etcd.hpp"
#include "logger.hpp"
#include <thread>
void regInfo( std::string key, std::string val)
{
    LOG_INFO("{}:{}服务上线",key,val);
}
void delInfo( std::string key, std::string val)
{
    LOG_INFO("{}:{}服务下线",key,val);
}
int main()
{
    init_logger(false,"",0);
    Discovery discovery("http://127.0.0.1:2379",regInfo,delInfo,"/service");
    std::this_thread::sleep_for(chrono::seconds(30));
    return 0;
}